package org.budo.support.lang.util;

/**
 * @author lmw
 */
public class ThrowableUtil {
    public static Boolean stackTraceContains(Throwable e, String string) {
        StackTraceElement[] stackTrace = e.getStackTrace();
        for (StackTraceElement stackTraceElement : stackTrace) {
            if ((stackTraceElement + "").contains(string)) {
                return true;
            }
        }

        return false;
    }
}